import request from '@/utils/request'

export function noHomeProducts() {
	return request({
		url: '/system/product/noHome',
		method: 'get'
	})
}

export function homeProducts() {
	return request({
		url: '/system/product/home',
		method: 'get'
	})
}

export function baseInfo(productId) {
	return request({
		url: '/system/product/baseInfo?productId=' + productId,
		method: 'get'
	})
}

export function setPrice(query) {
	return request({
		url: '/system/product/setPrice',
		method: 'get',
		params: query
	})
}

export function selfQueryInfo(productId) {
	return request({
		url: '/system/product/selfQuery?productId=' + productId,
		method: 'get'
	})
}

export function status(productId) {
	return request({
		url: '/system/product/status?productId='+productId,
		method: 'get',
	})
}